import request from '@/utils/request'

// 查询车辆监控规则列表
export function listVehicleMonitoringRules(query) {
  return request({
    url: '/ys/vehicleMonitoringRules/list',
    method: 'get',
    params: query
  })
}

// 查询车辆监控规则详细
export function getVehicleMonitoringRules(id) {
  return request({
    url: '/ys/vehicleMonitoringRules/' + id,
    method: 'get'
  })
}

// 新增车辆监控规则
export function addVehicleMonitoringRules(data) {
  return request({
    url: '/ys/vehicleMonitoringRules',
    method: 'post',
    data: data
  })
}

// 修改车辆监控规则
export function updateVehicleMonitoringRules(data) {
  return request({
    url: '/ys/vehicleMonitoringRules',
    method: 'put',
    data: data
  })
}

// 删除车辆监控规则
export function delVehicleMonitoringRules(id) {
  return request({
    url: '/ys/vehicleMonitoringRules/' + id,
    method: 'delete'
  })
}
